
package com.guigu.www.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.www.pojo.PayDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PayDetailsMapper extends BaseMapper<PayDetails> {
    //添加出库明细数据
   public int addParByPayDetailds(PayDetails payDetail);

   //查询当前父id的出库明细
    public List<PayDetails> queryByPayDateilsByfid(int id);

    //根据出库表查询明细
    public List<PayDetails> queryByPayPayIdsonson(int id);
    //查询当前出库的产品
    public PayDetails queryBypayDetailsByid(@Param("productId") String productId,@Param("id") int id);
    //修改明细表状态
    public int updatepayDetailsfuid(@Param("productId") String productId,@Param("id") int id);

    //根据当前库存id查询明细
    public List<PayDetails> queryByPayCellPayDetailsson(int id);
    //修改当前明细表状态
    public int updatoutpeyPaydetailsBystatus(PayDetails payDetail);
    //修改明细表数据
    public int updateCellstatusaumont(PayDetails payDetails);
    //查询明细
    public PayDetails queryBypayDetalisByid(@Param("id") int id,@Param("productId") String productId);
    //修改当前库存为0
     public void updatpaidamount(PayDetails payDetail);

   public List<PayDetails> querypayBydynamicinventiryall(String productId);
}